#include <iostream>

using namespace std;

int main()
{
   int n,i,s;
   s=0;
   cout<<"Please enter the number."<<endl;
   cin>>n;
   for(i=0;i<=n;i++){
    s=s+i;

   }
   cout<<s<<endl;
    return 0;
}
